home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 26 / AACD 26.iso / AACD / Online / PHP / include / php / ext / standard / file.h < prev    next >
Encoding:
C/C++ Source or Header  |  2001-02-26  |  3.4 KB  |  121 lines

  1. /*
  2.    +----------------------------------------------------------------------+
  3.    | PHP version 4.0                                                      |
  4.    +----------------------------------------------------------------------+
  5.    | Copyright (c) 1997-2001 The PHP Group                                |
  6.    +----------------------------------------------------------------------+
  7.    | This source file is subject to version 2.02 of the PHP license,      |
  8.    | that is bundled with this package in the file LICENSE, and is        |
  9.    | available at through the world-wide-web at                           |
  10.    | http://www.php.net/license/2_02.txt.                                 |
  11.    | If you did not receive a copy of the PHP license and are unable to   |
  12.    | obtain it through the world-wide-web, please send a note to          |
  13.    | license@php.net so we can mail you a copy immediately.               |
  14.    +----------------------------------------------------------------------+
  15.    | Authors: Rasmus Lerdorf <rasmus@lerdorf.on.ca>                       |
  16.    +----------------------------------------------------------------------+
  17. */
  18.  
  19. /* $Id: file.h,v 1.34 2001/02/26 06:07:17 andi Exp $ */
  20.  
  21. /* Synced with php 3.0 revision 1.30 1999-06-16 [ssb] */
  22.  
  23. #ifndef FILE_H
  24. #define FILE_H
  25.  
  26. PHP_MINIT_FUNCTION(file);
  27. PHP_MSHUTDOWN_FUNCTION(file);
  28.  
  29. PHP_FUNCTION(tempnam);
  30. PHP_NAMED_FUNCTION(php_if_tmpfile);
  31. PHP_NAMED_FUNCTION(php_if_fopen);
  32. PHP_FUNCTION(fclose);
  33. PHP_FUNCTION(popen);
  34. PHP_FUNCTION(pclose);
  35. PHP_FUNCTION(feof);
  36. PHP_FUNCTION(fread);
  37. PHP_FUNCTION(fgetc);
  38. PHP_FUNCTION(fgets);
  39. PHP_FUNCTION(fscanf);
  40. PHP_FUNCTION(fgetss);
  41. PHP_FUNCTION(fgetcsv);
  42. PHP_FUNCTION(fwrite);
  43. PHP_FUNCTION(fflush);
  44. PHP_FUNCTION(rewind);
  45. PHP_FUNCTION(ftell);
  46. PHP_FUNCTION(fseek);
  47. PHP_FUNCTION(mkdir);
  48. PHP_FUNCTION(rmdir);
  49. PHP_FUNCTION(fpassthru);
  50. PHP_FUNCTION(readfile);
  51. PHP_FUNCTION(umask);
  52. PHP_FUNCTION(rename);
  53. PHP_FUNCTION(unlink);
  54. PHP_FUNCTION(copy);
  55. PHP_FUNCTION(file);
  56. PHP_FUNCTION(set_socket_blocking); /* deprecated */
  57. PHP_FUNCTION(socket_set_blocking);
  58. PHP_FUNCTION(socket_set_timeout);
  59. PHP_FUNCTION(socket_get_status);
  60. PHP_FUNCTION(set_file_buffer);
  61. PHP_FUNCTION(get_meta_tags);
  62. PHP_FUNCTION(flock);
  63. PHP_FUNCTION(fd_set);
  64. PHP_FUNCTION(fd_isset);
  65. PHP_FUNCTION(select);
  66. PHP_FUNCTION(realpath);
  67. PHP_NAMED_FUNCTION(php_if_ftruncate);
  68. PHP_NAMED_FUNCTION(php_if_fstat);
  69.  
  70. PHPAPI int php_set_sock_blocking(int socketd, int block);
  71. PHPAPI int php_file_le_fopen(void);
  72. PHPAPI int php_file_le_popen(void);
  73. PHPAPI int php_file_le_socket(void);
  74. PHPAPI int php_copy_file(char *src, char *dest);
  75.  
  76. #define META_DEF_BUFSIZE 8192
  77.  
  78. typedef enum _php_meta_tags_token {
  79.     TOK_EOF = 0,
  80.     TOK_OPENTAG,
  81.     TOK_CLOSETAG,
  82.     TOK_SLASH,
  83.     TOK_EQUAL,
  84.     TOK_SPACE,
  85.     TOK_ID,
  86.     TOK_STRING,
  87.     TOK_OTHER
  88. } php_meta_tags_token;
  89.  
  90. php_meta_tags_token php_next_meta_token(FILE *, int, int, int *, int *, char **, int *);
  91.  
  92. typedef struct {
  93.     int fgetss_state;
  94.     int pclose_ret;
  95.     HashTable ht_fsock_keys;
  96.     HashTable ht_fsock_socks;
  97.     struct php_sockbuf *phpsockbuf;
  98.     size_t def_chunk_size;
  99. } php_file_globals;
  100.  
  101. #ifdef ZTS
  102. #define FLS_D php_file_globals *file_globals
  103. #define FLS_DC , FLS_D
  104. #define FLS_C file_globals
  105. #define FLS_CC , FLS_C
  106. #define FG(v) (file_globals->v)
  107. #define FLS_FETCH() php_file_globals *file_globals = ts_resource(file_globals_id)
  108. extern int file_globals_id;
  109. #else
  110. #define FLS_D    void
  111. #define FLS_DC
  112. #define FLS_C
  113. #define FLS_CC
  114. #define FG(v) (file_globals.v)
  115. #define FLS_FETCH()
  116. extern php_file_globals file_globals;
  117. #endif
  118.  
  119.  
  120. #endif /* FILE_H */
  121.